toJson method

Map<String, dynamic> toJson()

Produces a Map that can be serialized to JSON.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (name != null) 'name': name,
    if (version != null) 'version': version,
    if (build != null) 'build': build,
    if (kernelVersion != null) 'kernel_version': kernelVersion,
    if (rooted != null) 'rooted': rooted,
    if (rawDescription != null) 'raw_description': rawDescription,
    if (theme != null) 'theme': theme,
  };
}