DescribeEmergencyContactSettingsResponse.fromJson constructor

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

Implementation

factory DescribeEmergencyContactSettingsResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeEmergencyContactSettingsResponse(
    emergencyContactList: (json['EmergencyContactList'] as List?)
        ?.whereNotNull()
        .map((e) => EmergencyContact.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}