toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'name': name,
'runtime': runtime is ProjectRuntimeInfo
? (runtime as ProjectRuntimeInfo).toJson()
: runtime,
if (main != null) 'main': main,
if (description != null) 'description': description,
if (author != null) 'author': author,
if (website != null) 'website': website,
if (license != null) 'license': license,
if (config != null) 'config': config,
if (template != null) 'template': template!.toJson(),
if (backend != null) 'backend': backend!.toJson(),
...extras,
};
}