AssociatePhoneNumbersWithVoiceConnectorResponse.fromJson constructor

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

Implementation

factory AssociatePhoneNumbersWithVoiceConnectorResponse.fromJson(
    Map<String, dynamic> json) {
  return AssociatePhoneNumbersWithVoiceConnectorResponse(
    phoneNumberErrors: (json['PhoneNumberErrors'] as List?)
        ?.whereNotNull()
        .map((e) => PhoneNumberError.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}