ExampleStore.fromJson constructor
ExampleStore.fromJson(
- Object? j
Implementation
factory ExampleStore.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ExampleStore(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
displayName: switch (json['displayName']) {
null => '',
Object $1 => decodeString($1),
},
description: switch (json['description']) {
null => '',
Object $1 => decodeString($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
exampleStoreConfig: switch (json['exampleStoreConfig']) {
null => null,
Object $1 => ExampleStoreConfig.fromJson($1),
},
);
}