toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'object'] = this.object;
  json[r'id'] = this.id;
  json[r'email_address'] = this.emailAddress;
  json[r'role'] = this.role;
  json[r'role_name'] = this.roleName;
  if (this.organizationId != null) {
    json[r'organization_id'] = this.organizationId;
  } else {
    json[r'organization_id'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  json[r'public_metadata'] = this.publicMetadata;
  json[r'private_metadata'] = this.privateMetadata;
  if (this.url != null) {
    json[r'url'] = this.url;
  } else {
    json[r'url'] = null;
  }
  if (this.expiresAt != null) {
    json[r'expires_at'] = this.expiresAt;
  } else {
    json[r'expires_at'] = null;
  }
  json[r'created_at'] = this.createdAt;
  json[r'updated_at'] = this.updatedAt;
  return json;
}