toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final message = this.message;
  final type = this.type;
  final externalExecutionId = this.externalExecutionId;
  return {
    'message': message,
    'type': type.toValue(),
    if (externalExecutionId != null)
      'externalExecutionId': externalExecutionId,
  };
}