GetConversationResult.fromMap constructor

GetConversationResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetConversationResult.fromMap(Map<String, dynamic> map) {
  return GetConversationResult(
    conversationProfile: map['conversationProfile'] as String,
    conversationStage: map['conversationStage'] as String,
    endTime: map['endTime'] as String,
    lifecycleState: map['lifecycleState'] as String,
    name: map['name'] as String,
    phoneNumber: GoogleCloudDialogflowV2ConversationPhoneNumberResponse.fromMap((map['phoneNumber']! as Map).cast<String, dynamic>()),
    startTime: map['startTime'] as String,
  );
}