QualificationType.fromJson constructor

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

Implementation

factory QualificationType.fromJson(Map<String, dynamic> json) {
  return QualificationType(
    answerKey: json['AnswerKey'] as String?,
    autoGranted: json['AutoGranted'] as bool?,
    autoGrantedValue: json['AutoGrantedValue'] as int?,
    creationTime: timeStampFromJson(json['CreationTime']),
    description: json['Description'] as String?,
    isRequestable: json['IsRequestable'] as bool?,
    keywords: json['Keywords'] as String?,
    name: json['Name'] as String?,
    qualificationTypeId: json['QualificationTypeId'] as String?,
    qualificationTypeStatus: (json['QualificationTypeStatus'] as String?)
        ?.toQualificationTypeStatus(),
    retryDelayInSeconds: json['RetryDelayInSeconds'] as int?,
    test: json['Test'] as String?,
    testDurationInSeconds: json['TestDurationInSeconds'] as int?,
  );
}