toJson method

Map<String, dynamic> toJson()

Convert to JSON.

Implementation

Map<String, dynamic> toJson() => {
      'platform': platform,
      'channelId': channelId,
      if (displayName != null) 'displayName': displayName,
    };