CustomError.fromJson constructor

CustomError.fromJson(
  1. Map _json
)

Implementation

CustomError.fromJson(core.Map _json) {
  if (_json.containsKey("rules")) {
    rules = (_json["rules"] as core.List)
        .map<CustomErrorRule>((value) => new CustomErrorRule.fromJson(value))
        .toList();
  }
  if (_json.containsKey("types")) {
    types = (_json["types"] as core.List).cast<core.String>();
  }
}