toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'id': id,
  'label': label,
  'run': run.toJson(),
  if (description != null) 'description': description,
  if (danger) 'danger': true,
  if (argument != null) 'argument': argument,
  if (timeout != null) 'timeout': timeout!.inMilliseconds,
};