fromJson static method
Returns a new Error instance and imports its values from
json if it's non-null, null if json is null.
Implementation
static Error? fromJson(Map<String, dynamic>? json) => json == null
? null
: Error(
code: json[r'code'],
message: json[r'message'],
);