LinkResponse.fromMap constructor

LinkResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory LinkResponse.fromMap(Map<String, dynamic> map) {
  return LinkResponse(
    id: map['id'],
    type: map['type'],
    attributes: map['attributes'] != null
        ? LinkResponseAttributes.fromMap(map['attributes'])
        : null,
  );
}