GetDocumentResult.fromMap constructor
GetDocumentResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetDocumentResult.fromMap(Map<String, dynamic> map) {
return GetDocumentResult(
contentUri: map['contentUri'] as String,
displayName: map['displayName'] as String,
enableAutoReload: map['enableAutoReload'] as bool,
knowledgeTypes: (map['knowledgeTypes'] as List).cast<String>(),
latestReloadStatus: GoogleCloudDialogflowV2DocumentReloadStatusResponse.fromMap((map['latestReloadStatus']! as Map).cast<String, dynamic>()),
metadata: (map['metadata'] as Map).cast<String, String>(),
mimeType: map['mimeType'] as String,
name: map['name'] as String,
rawContent: map['rawContent'] as String,
state: map['state'] as String,
);
}