toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'platform': platform,
    'platformVersion': platformVersion,
    'architecture': architecture,
    'model': model,
    'mobile': mobile,
    if (brands != null) 'brands': brands!.map((e) => e.toJson()).toList(),
    if (fullVersionList != null)
      'fullVersionList': fullVersionList!.map((e) => e.toJson()).toList(),
    if (bitness != null) 'bitness': bitness,
    if (wow64 != null) 'wow64': wow64,
  };
}