Map<String, dynamic> get asFullMap => { 'type': type, if (id != null) 'id': id, 'attributes': attributes, 'relationships': relationships, 'links': links, };