Error.fromJson constructor

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

Implementation

factory Error.fromJson(Map<String, dynamic> json) {
  return Error(
    message: json['message'] as String,
    code: json['code'] as int,
  );
}