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