toJson method
Implementation
Map<String, dynamic> toJson() {
final dimensions = this.dimensions;
final messageActivity = this.messageActivity;
return {
if (dimensions != null) 'Dimensions': dimensions,
if (messageActivity != null) 'MessageActivity': messageActivity,
};
}