toJson method
Produces a Map that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (name != null) {
json['name'] = name;
}
if (version != null) {
json['version'] = version;
}
if (build != null) {
json['build'] = build;
}
if (kernelVersion != null) {
json['kernel_version'] = kernelVersion;
}
if (rooted != null) {
json['rooted'] = rooted;
}
if (rawDescription != null) {
json['raw_description'] = rawDescription;
}
return json;
}