toJson method

Map<String, dynamic> toJson()

Converts this object into JSON format.

Implementation

Map<String, dynamic> toJson() {
  return {
    ApiFields.modelId: modelId,
    ApiFields.manufacturerName: manufacturerName,
    ApiFields.productName: productName,
    ApiFields.productArchetype: productArchetype.value,
    ApiFields.isCertified: isCertified,
    ApiFields.softwareVersion: softwareVersion,
    ApiFields.hardwarePlatformType: hardwarePlatformType,
  };
}