ApiException.fromJson constructor

ApiException.fromJson(
  1. int statusCode,
  2. Map<String, dynamic> json
)

Implementation

ApiException.fromJson(this.statusCode, Map<String, dynamic> json)
    : errors = (json['errors'] as List).map((item) => ApiError.fromJson(item)).toList();