fromJson static method

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

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

Implementation

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

  return DocumentLinks(
    createdBy: DocumentLinksCreatedBy.fromJson(json[r'createdBy']),
    file: DocumentLinksFile.fromJson(json[r'file']),
    procedure: DocumentLinksProcedure.fromJson(json[r'procedure']),
    self: DocumentLinksSelf.fromJson(json[r'self']),
  );
}