Error.fromJson constructor

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

Implementation

factory Error.fromJson(Map<String, Object?> json) =>
    Error(message: json["message"] as String);