deserialize method

  1. @override
void deserialize(
  1. Map<String, dynamic>? json
)
override

Implementation

@override
void deserialize(Map<String, dynamic>? json) {
  if (json == null) {
    throw ApiException(400, 'Failed to deserialize FileLink data model.');
  }

  super.deserialize(json);
  if (json.containsKey('Href')) {
    href = json['Href'] as String;
  } else {
    href = null;
  }

  if (json.containsKey('Rel')) {
    rel = json['Rel'] as String;
  } else {
    rel = null;
  }

  if (json.containsKey('Title')) {
    title = json['Title'] as String;
  } else {
    title = null;
  }

  if (json.containsKey('Type')) {
    type = json['Type'] as String;
  } else {
    type = null;
  }
}