fromJson static method

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

Returns a new MemberData instance and imports its values from json if it's non-null, null if json is null.

Implementation

static MemberData? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return MemberData(
    contactPoint:
        InternalServiceDataContactPoint.fromJson(json[r'contactPoint']),
    organization: json[r'organization'],
    person: json[r'person'],
    type: MemberDataTypeEnum.fromJson(json[r'type']),
  );
}