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(json['file'] as Map<String, dynamic>?)!,
    date: (json['date'] as int?) ?? 0,
  );
}