Session.fromJson constructor
Session.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Session.fromJson(Map<String, dynamic> json) {
return Session(
expireTime: decodeCustom(json['expireTime'], protobuf.Timestamp.fromJson),
ttl: decodeCustom(json['ttl'], protobuf.Duration.fromJson),
name: json['name'] ?? '',
createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
displayName: json['displayName'] ?? '',
sessionState: decodeCustom(
json['sessionState'],
protobuf.Struct.fromJson,
),
userId: json['userId'] ?? '',
);
}