@override Object toJson() => { if (mapInstance.isNotDefault) 'mapInstance': { for (final e in mapInstance.entries) e.key: e.value.toJson(), }, };