InputPersonalDocument.fromJson constructor

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

Parse from a json

Implementation

factory InputPersonalDocument.fromJson(Map<String, dynamic> json) => InputPersonalDocument(
  files: List<InputFile>.from((json['files'] ?? []).map((item) => InputFile.fromJson(item)).toList()),
  translation: List<InputFile>.from((json['translation'] ?? []).map((item) => InputFile.fromJson(item)).toList()),
);