toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'type': type,
    'url': url,
    'belongs_to': belongsTo,
  };
}