toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'app_id': appId,
      if (data != null) 'data': data,
      'pushkey': pushkey,
      if (pushkeyTs != null) 'pushkey_ts': pushkeyTs,
      if (tweaks != null) 'tweaks': tweaks?.toJson(),
    };