VoiceConnectorGroup.fromJson constructor

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

Implementation

factory VoiceConnectorGroup.fromJson(Map<String, dynamic> json) {
  return VoiceConnectorGroup(
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    name: json['Name'] as String?,
    updatedTimestamp: timeStampFromJson(json['UpdatedTimestamp']),
    voiceConnectorGroupId: json['VoiceConnectorGroupId'] as String?,
    voiceConnectorItems: (json['VoiceConnectorItems'] as List?)
        ?.whereNotNull()
        .map((e) => VoiceConnectorItem.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}