GetDocumentVersionResponse.fromJson constructor

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

Implementation

factory GetDocumentVersionResponse.fromJson(Map<String, dynamic> json) {
  return GetDocumentVersionResponse(
    customMetadata: (json['CustomMetadata'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    metadata: json['Metadata'] != null
        ? DocumentVersionMetadata.fromJson(
            json['Metadata'] as Map<String, dynamic>)
        : null,
  );
}