import 'package:json_annotation/json_annotation.dart';

import 'package:pshared/data/dto/date_time.dart';
import 'package:pshared/data/dto/permissions/bound.dart';

part 'organization.g.dart';


@JsonSerializable()
class OrganizationDTO extends PermissionBoundDTO {
  final String name;
  final String? description;
  final String timeZone;
  final String? logoUrl;
  final String tenantRef;

  const OrganizationDTO({
    required super.id,
    required super.createdAt,
    required super.updatedAt,
    required super.permissionRef,
    required super.organizationRef,
    required this.name,
    required this.tenantRef,
    this.description,
    required this.timeZone,
    this.logoUrl,
  });

  factory OrganizationDTO.fromJson(Map<String, dynamic> json) => _$OrganizationDTOFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$OrganizationDTOToJson(this);
}
