NetworkFileModel.fromJson constructor

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

Constructs a NetworkFileModel object from a JSON representation.

Implementation

factory NetworkFileModel.fromJson(Map<String, dynamic> json) =>
    NetworkFileModel(
      id: json["id"],
      url: json["url"],
      fileName: json["file_name"],
      extensionFile: json["extension"],
      size: double.parse('${json['size'] ?? 0}'),
    );