WriteLogEntriesPartialErrors.fromJson constructor
WriteLogEntriesPartialErrors.fromJson(
- Object? j
Implementation
factory WriteLogEntriesPartialErrors.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return WriteLogEntriesPartialErrors(
logEntryErrors: switch (json['logEntryErrors']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeInt(e.key): Status.fromJson(e.value),
},
_ => throw const FormatException('"logEntryErrors" is not an object'),
},
);
}