toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'profile': profile.value,
  'root': root,
  'path': path,
  'state': state.wireValue,
  'installed': switch (installed) {
    final revision? => {
      'release': revision.release,
      'commit': revision.commit,
    },
    null => null,
  },
};