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