File.fromJson constructor

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

Implementation

factory File.fromJson(Map<String, dynamic> json) {
  return File(
    name: json['name'] as String,
    lastModified:
        network.TimeSinceEpoch.fromJson(json['lastModified'] as num),
    size: json['size'] as num,
    type: json['type'] as String,
  );
}