toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'updateTermsOfService',
if (extra != null) '@extra': extra,
'terms_of_service_id': terms_of_service_id,
'terms_of_service': terms_of_service
};
}