toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.isPrivate != null) {
    json[r'isPrivate'] = this.isPrivate;
  } else {
    json[r'isPrivate'] = null;
  }
  if (this.avatarSrc != null) {
    json[r'avatarSrc'] = this.avatarSrc;
  } else {
    json[r'avatarSrc'] = null;
  }
    json[r'displayName'] = this.displayName;
    json[r'id'] = this.id;
  return json;
}