GenericOperationMetadata.fromJson constructor
GenericOperationMetadata.fromJson(
- Object? j
Implementation
factory GenericOperationMetadata.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GenericOperationMetadata(
partialFailures: switch (json['partialFailures']) {
null => [],
List<Object?> $1 => [for (final i in $1) Status.fromJson(i)],
_ => throw const FormatException('"partialFailures" is not a list'),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
);
}