ValidationOutput.fromJson constructor

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

Implementation

factory ValidationOutput.fromJson(Map<String, dynamic> json) {
  return ValidationOutput(
    appValidationOutput: json['appValidationOutput'] != null
        ? AppValidationOutput.fromJson(
            json['appValidationOutput'] as Map<String, dynamic>)
        : null,
    latestValidationTime: timeStampFromJson(json['latestValidationTime']),
    name: json['name'] as String?,
    serverValidationOutput: json['serverValidationOutput'] != null
        ? ServerValidationOutput.fromJson(
            json['serverValidationOutput'] as Map<String, dynamic>)
        : null,
    status: (json['status'] as String?)?.toValidationStatus(),
    statusMessage: json['statusMessage'] as String?,
    validationId: json['validationId'] as String?,
  );
}