Parse from a json
factory DatedFile.fromJson(Map<String, dynamic> json) => DatedFile( file: File.fromJson(json['file']), date: json['date'], );