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