toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (status != null) {
    json[r'status'] = status;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (createdAt != null) {
    json[r'createdAt'] = createdAt!.toUtc().toIso8601String();
  }
  if (updatedAt != null) {
    json[r'updatedAt'] = updatedAt!.toUtc().toIso8601String();
  }
  json[r'orgID'] = orgID;
  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;
}