fromJson static method

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

Implementation

static DatedFile? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return DatedFile(
    file: File.fromJson(tdMapFromJson(json['file'])),
    date: (json['date'] as int?) ?? 0,
  );
}