toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'api_key_id'] = this.apiKeyId;
if (this.userId != null) {
json[r'user_id'] = this.userId;
} else {
json[r'user_id'] = null;
}
json[r'company_id'] = this.companyId;
json[r'role_id'] = this.roleId;
json[r'token'] = this.token;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.expirationDateUtc != null) {
json[r'expiration_date_utc'] = this.expirationDateUtc;
} else {
json[r'expiration_date_utc'] = null;
}
if (this.dateCreated != null) {
json[r'date_created'] = this.dateCreated;
} else {
json[r'date_created'] = null;
}
if (this.lastUpdated != null) {
json[r'last_updated'] = this.lastUpdated;
} else {
json[r'last_updated'] = null;
}
if (this.active != null) {
json[r'active'] = this.active;
} else {
json[r'active'] = null;
}
return json;
}