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