toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
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;
}