PickedAssetModel.fromJson constructor

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

Implementation

factory PickedAssetModel.fromJson(Map<String, dynamic> json) =>
    PickedAssetModel(
      id: json["id"],
      path: json["path"],
      type: json["type"],
      videoDuration: json["videoDuration"],
      createDateTime: DateTime.parse(json["createDateTime"]),
      latitude: json["latitude"],
      longitude: json["longitude"],
      thumbnail: json["thumbnail"],
      height: json["height"],
      width: json["width"],
      orientationHeight: json["orientationHeight"],
      orientationWidth: json["orientationWidth"],
      orientationSize: json["orientationSize"],
      file: json["file"],
      modifiedDateTime: DateTime.parse(json["modifiedDateTime"]),
      title: json["title"],
      size: json["size"],
    );