Error.fromJson constructor

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

Implementation

factory Error.fromJson(Map<String, dynamic> json) => Error(
      locations: json['locations'] == null
          ? null
          : List<Location>.from(
              json['locations'].map((x) => Location.fromJson(x))),
      message: json['message'],
      path: json['path'] == null
          ? null
          : List<String>.from(json['path'].map((x) => x)),
    );