ValidationOptionsForUpdate.fromJson constructor

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

Implementation

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