ExportFeatureValuesRequest.fromJson constructor
ExportFeatureValuesRequest.fromJson(
- Object? j
Implementation
factory ExportFeatureValuesRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ExportFeatureValuesRequest(
snapshotExport: switch (json['snapshotExport']) {
null => null,
Object $1 => ExportFeatureValuesRequest_SnapshotExport.fromJson($1),
},
fullExport: switch (json['fullExport']) {
null => null,
Object $1 => ExportFeatureValuesRequest_FullExport.fromJson($1),
},
entityType: switch (json['entityType']) {
null => '',
Object $1 => decodeString($1),
},
destination: switch (json['destination']) {
null => null,
Object $1 => FeatureValueDestination.fromJson($1),
},
featureSelector: switch (json['featureSelector']) {
null => null,
Object $1 => FeatureSelector.fromJson($1),
},
settings: switch (json['settings']) {
null => [],
List<Object?> $1 => [
for (final i in $1) DestinationFeatureSetting.fromJson(i),
],
_ => throw const FormatException('"settings" is not a list'),
},
);
}