LinkMetadata.fromJson constructor
LinkMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LinkMetadata.fromJson(Map<String, dynamic> json) {
return LinkMetadata(
startTime: decodeCustom(json['startTime'], Timestamp.fromJson),
endTime: decodeCustom(json['endTime'], Timestamp.fromJson),
state:
decodeEnum(json['state'], OperationState.fromJson) ??
OperationState.$default,
createLinkRequest: decode(
json['createLinkRequest'],
CreateLinkRequest.fromJson,
),
deleteLinkRequest: decode(
json['deleteLinkRequest'],
DeleteLinkRequest.fromJson,
),
);
}