fromJson static method

  1. @visibleForTesting
EnrollmentResponse? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static EnrollmentResponse? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new EnrollmentResponse._privateConstructor();

  result._personId = jsonObject["personId"];
  result._externalId = jsonObject["externalId"];
  result._error = ErrorResponse.fromJson(jsonObject["error"]);

  return result;
}