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