toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final body = this.body;
  final substitutions = this.substitutions;
  return {
    if (body != null) 'Body': body,
    if (substitutions != null) 'Substitutions': substitutions,
  };
}