ValidationOptionsForCreate.fromJson constructor

ValidationOptionsForCreate.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ValidationOptionsForCreate.fromJson(Map<String, Object?> json) {
  return ValidationOptionsForCreate(
    levels: (json[r'levels'] as List<Object?>?)
            ?.map((i) => ValidationOptionsForCreateLevels.fromValue(
                i as String? ?? ''))
            .toList() ??
        [],
  );
}