toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'auth_result'] = this.authResult;
  json[r'duration'] = this.duration;
  if (this.password != null) {
    json[r'password'] = this.password;
  } else {
    json[r'password'] = null;
  }
  if (this.trunkId != null) {
    json[r'trunk_id'] = this.trunkId;
  } else {
    json[r'trunk_id'] = null;
  }
  if (this.username != null) {
    json[r'username'] = this.username;
  } else {
    json[r'username'] = null;
  }
  return json;
}