Examples.fromJson constructor
Examples.fromJson(
- Object? j
Implementation
factory Examples.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Examples(
exampleGcsSource: switch (json['exampleGcsSource']) {
null => null,
Object $1 => Examples_ExampleGcsSource.fromJson($1),
},
nearestNeighborSearchConfig:
switch (json['nearestNeighborSearchConfig']) {
null => null,
Object $1 => protobuf.Value.fromJson($1),
},
presets: switch (json['presets']) {
null => null,
Object $1 => Presets.fromJson($1),
},
gcsSource: switch (json['gcsSource']) {
null => null,
Object $1 => GcsSource.fromJson($1),
},
neighborCount: switch (json['neighborCount']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}