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