ProtoGoogleListValue.fromDynamic constructor
ProtoGoogleListValue.fromDynamic(
- Object? json
Parses either the field map or the canonical raw-list form.
Implementation
factory ProtoGoogleListValue.fromDynamic(Object? json) {
if (json is List) {
return ProtoGoogleListValue(
values: [for (final e in json) ProtoGoogleValue.fromDynamic(e)],
);
}
return ProtoGoogleListValue.fromJson((json as Map).cast<String, dynamic>());
}