Proxy.fromJson constructor

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

Implementation

factory Proxy.fromJson(Map<String, dynamic> json) {
  return Proxy(
    defaultSessionExpiryMinutes: json['DefaultSessionExpiryMinutes'] as int?,
    disabled: json['Disabled'] as bool?,
    fallBackPhoneNumber: json['FallBackPhoneNumber'] as String?,
    phoneNumberCountries: (json['PhoneNumberCountries'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}