Memory.fromJson constructor
Implementation
factory Memory.fromJson(Map<String, dynamic> json) {
return Memory(
expireTime: decodeCustom(json['expireTime'], protobuf.Timestamp.fromJson),
ttl: decodeCustom(json['ttl'], protobuf.Duration.fromJson),
name: json['name'] ?? '',
displayName: json['displayName'] ?? '',
description: json['description'] ?? '',
createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
fact: json['fact'] ?? '',
scope: decodeMap(json['scope']) ?? {},
);
}