toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => <String, Object?>{
      'id': id,
      'spec': spec.toJson(),
      'status': status.name,
      if (queuePosition != null) 'queuePosition': queuePosition,
      'artifacts': <Object?>[for (final DVCloudArtifact a in artifacts) a.toJson()],
      if (installUrl != null) 'installUrl': installUrl,
      if (message != null) 'message': message,
    };