GetContactMethodsResult.fromJson constructor

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

Implementation

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