OneTimeLinkInfo.fromJson constructor
Converts a JSON map into a OneTimeLinkInfo object.
Implementation
factory OneTimeLinkInfo.fromJson(Map<String, dynamic> json) {
return OneTimeLinkInfo(
linkId: json['link_id'],
file: FileInfo.fromJson(json['file']),
url: json['url'],
state: json['state'],
stateLabel: json['state_label'],
callbackUrl: json['callback_url'],
notify: json['notify'],
created: DateTime.fromMillisecondsSinceEpoch(json['created'] * 1000),
downloaded: json['downloaded'],
);
}