toJson method

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

Must include path; the rest is whatever the plugin needs.

Implementation

@override
Map<String, Object?> toJson() => {
  ...super.toJson(),
  'catalogs': [for (var c in catalogs) c.toJson()],
};