Converts the data to a JSON representation.
@override Map<String, dynamic> toJson({bool visible = true});