toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final id = this.id;
  final name = this.name;
  final control = this.control;
  final input = this.input;
  final startToCloseTimeout = this.startToCloseTimeout;
  return {
    'id': id,
    'name': name,
    if (control != null) 'control': control,
    if (input != null) 'input': input,
    if (startToCloseTimeout != null)
      'startToCloseTimeout': startToCloseTimeout,
  };
}