toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'cid'] = this.cid;
    json[r'connection_id'] = this.connectionId;
    json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
  if (this.me != null) {
    json[r'me'] = this.me;
  } else {
    json[r'me'] = null;
  }
    json[r'type'] = this.type;
  return json;
}