fromJson static method

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

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'],
  );