toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (self != null) {
    data['self'] = self!.map((v) => v.toJson()).toList();
  }
  if (collection != null) {
    data['collection'] = collection!.map((v) => v.toJson()).toList();
  }
  if (up != null) {
    data['up'] = up!.map((v) => v.toJson()).toList();
  }
  if (describes != null) {
    data['describes'] = describes!.map((v) => v.toJson()).toList();
  }
  return data;
}