toJson method

Map<String, Object?> toJson()
override

Implementation

Map<String, Object?> toJson() {
  final profileTag = this.profileTag;
  return {
    'app_id': appId,
    'pushkey': pushkey,
    'app_display_name': appDisplayName,
    'data': data.toJson(),
    'device_display_name': deviceDisplayName,
    'kind': kind,
    'lang': lang,
    if (profileTag != null) 'profile_tag': profileTag,
  };
}