toJson method

Map<String, dynamic> toJson()
override

Implementation

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