toJson method
Implementation
Map<String, Object> toJson() {
Map<String, Object> ret = {
'campaignId': campaignId,
'campaignName': campaignName,
'variationGroupId': variationGroupId,
'variationGroupName': variationGroupName,
'variationId': variationId,
'variationName': variationName,
'isReference': isReference,
'key': key
};
//Secure before adding the nullable
if (value != null) ret['value'] = value;
return ret;
}