Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'paymentProviderSmartGlocal', if (extra != null) '@extra': extra, 'public_token': public_token }; }