Error.fromJson constructor

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

Implementation

factory Error.fromJson(Map<String, dynamic> json) {
  return Error(
    code: json['code'] ?? 0,
    message: json['message'] ?? "",
    extra: json['@extra'],
  );
}