toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = id;
  data['name'] = name;
  data['order'] = order;
  if (links != null) {
    data['_links'] = links!.toJson();
  }
  return data;
}