toJson method

Map<String, dynamic> toJson()

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,
    };