toJson method
Implementation
@override
Map<String, dynamic>? toJson(TooltipThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'excludeFromSemantics': object.excludeFromSemantics,
'height': object.height,
'margin': const NullableEdgeInsetsGeometryConverter()
.toJson(object.margin as EdgeInsets?),
'padding': const NullableEdgeInsetsGeometryConverter()
.toJson(object.padding as EdgeInsets?),
'preferBelow': object.preferBelow,
'showDuration': object.showDuration?.inMilliseconds,
'textStyle': const NullableTextStyleConverter().toJson(object.textStyle),
'verticalOffset': object.verticalOffset,
'waitDuration': object.waitDuration?.inMilliseconds,
};
}