toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'platform': platform,
'model': model,
if (locale != null && locale!.isNotEmpty) 'locale': locale,
if (theme != null && theme!.isNotEmpty) 'theme': theme,
'label': displayLabel,
};