toJson method

Map<String, dynamic> toJson()

Implementation

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