DocumentInfo.fromJson constructor

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

Implementation

factory DocumentInfo.fromJson(Map<String, dynamic> json) {
  return DocumentInfo(
    description: json['description'] ?? '',
    doctype: json['doctype'] ?? '',
    logo: json['logo'] ?? '',
    requiredParameters: (json['required_parameters'] as List<dynamic>?)
        ?.map((param) => DocumentField.fromJson(param))
        .toList() ?? [],
  );
}