toJson method
dynamic
toJson()
Implementation
dynamic toJson() {
if (hosted == null) {
return version.toString();
}
return {
'hosted': hosted!.toJson(),
'version': version.toString(),
};
}
dynamic toJson() {
if (hosted == null) {
return version.toString();
}
return {
'hosted': hosted!.toJson(),
'version': version.toString(),
};
}