ExampleStore.fromJson constructor

ExampleStore.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ExampleStore.fromJson(Map<String, dynamic> json) {
  return ExampleStore(
    name: json['name'] ?? '',
    displayName: json['displayName'] ?? '',
    description: json['description'] ?? '',
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
    updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
    exampleStoreConfig: decode(
      json['exampleStoreConfig'],
      ExampleStoreConfig.fromJson,
    ),
  );
}