fromJson static method

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

Returns a new Problem instance and imports its values from json if it's non-null, null if json is null.

Implementation

static Problem? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Problem(
    type: json[r'type'],
    title: json[r'title'],
    detail: json[r'detail'],
    embedded: ProblemEmbedded.fromJson(json[r'_embedded']),
  );
}