Converts an object to JSON.
@override Map<String, dynamic> toJson() { return { '\$': value ? '0x997275b5' : '0xbc799737', 'value': value, }; }