ValidationError.fromJson constructor

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

Implementation

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