fromJson static method

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

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

Implementation

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

  return InternalServicePatch(
    address: ExternalServicePatchAddress.fromJson(json[r'address']),
    contactPoint:
        ExternalServicePatchContactPoint.fromJson(json[r'contactPoint']),
    description: json[r'description'],
    manager: json[r'manager'],
    name: json[r'name'],
  );
}