toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (cards != null) {
    _json[r'cards'] = cards;
  }
  if (views != null) {
    _json[r'views'] = views;
  }
  return _json;
}