fromJson static method

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

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

Implementation

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

  return InternalServiceData(
    address: InternalServiceDataAddress.fromJson(json[r'address']),
    contactPoint:
        InternalServiceDataContactPoint.fromJson(json[r'contactPoint']),
    description: json[r'description'],
    manager: json[r'manager'],
    name: json[r'name'],
    organization: json[r'organization'],
  );
}