toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (smartCollections != null) {
    data['smart_collections'] =
        smartCollections!.map((v) => v.toJson()).toList();
  }
  if (pageLink != null) {
    data['page_link'] = pageLink!.toJson();
  }
  return data;
}