toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.callLevel != null) {
    json[r'call_level'] = this.callLevel;
  } else {
    json[r'call_level'] = null;
  }
  if (this.chatLevel != null) {
    json[r'chat_level'] = this.chatLevel;
  } else {
    json[r'chat_level'] = null;
  }
  if (this.disabledUntil != null) {
    json[r'disabled_until'] = this.disabledUntil!.toUtc().toIso8601String();
  } else {
    json[r'disabled_until'] = null;
  }
  return json;
}