ValidationWarning.fromJson constructor

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

Implementation

factory ValidationWarning.fromJson(Map<String, dynamic> json) {
  return ValidationWarning(
    id: json['id'] as String?,
    warnings: (json['warnings'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}