FileLink.fromJson constructor

FileLink.fromJson(
  1. Map<String, Object?> json
)

Parses a link from json.

Implementation

factory FileLink.fromJson(Map<String, Object?> json) => FileLink(
  downloadUrl: Uri.parse(json['downloadUrl']! as String),
  bytes: json['bytes'] as int?,
  contentType: json['contentType'] as String?,
  expiresAt: _time(json['expiresAt'] as String?),
);