toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    if (source != null) 'source': source,
    if (git != null) 'git': git!.toJson()['git'],
    if (repo != null) 'repo': repo,
    if (version != null) 'version': version?.toString(),
    if (mode != null) 'mode': mode?.name,
  };
}