toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var gadgets = this.gadgets;

  final json = <String, Object?>{};
  json[r'gadgets'] = gadgets.map((i) => i.toJson()).toList();
  return json;
}