QualificationRequirement.fromJson constructor

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

Implementation

factory QualificationRequirement.fromJson(Map<String, dynamic> json) {
  return QualificationRequirement(
    comparator: (json['Comparator'] as String).toComparator(),
    qualificationTypeId: json['QualificationTypeId'] as String,
    actionsGuarded: (json['ActionsGuarded'] as String?)?.toHITAccessActions(),
    integerValues: (json['IntegerValues'] as List?)
        ?.whereNotNull()
        .map((e) => e as int)
        .toList(),
    localeValues: (json['LocaleValues'] as List?)
        ?.whereNotNull()
        .map((e) => Locale.fromJson(e as Map<String, dynamic>))
        .toList(),
    requiredToPreview: json['RequiredToPreview'] as bool?,
  );
}