DocumentInfo.fromJson constructor
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() ?? [],
);
}