toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (createdAt != null) {
json[r'createdAt'] = createdAt!.toUtc().toIso8601String();
}
if (updatedAt != null) {
json[r'updatedAt'] = updatedAt!.toUtc().toIso8601String();
}
if (orgID != null) {
json[r'orgID'] = orgID;
}
if (permissions != null) {
json[r'permissions'] = permissions;
}
if (id != null) {
json[r'id'] = id;
}
if (token != null) {
json[r'token'] = token;
}
if (userID != null) {
json[r'userID'] = userID;
}
if (user != null) {
json[r'user'] = user;
}
if (org != null) {
json[r'org'] = org;
}
if (links != null) {
json[r'links'] = links;
}
return json;
}