MediaAttachmentsUri.fromJson constructor

MediaAttachmentsUri.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MediaAttachmentsUri.fromJson(Map<String, dynamic> json) => MediaAttachmentsUri(
  authority: json["authority"] == null ? null : Authority.fromJson(json["authority"]),
  fragment: json["fragment"] == null ? null : Fragment.fromJson(json["fragment"]),
  path: json["path"] == null ? null : Authority.fromJson(json["path"]),
  query: json["query"] == null ? null : Fragment.fromJson(json["query"]),
  scheme: json["scheme"],
  uriString: json["uriString"],
  host: json["host"],
  port: json["port"],
  file: Platform.isIOS ? json["file"] : json["path"]==null ? null : json["path"]["encoded"]
);