copyWith method

OrganizationDTO copyWith({
  1. SelfLinkDTO? links,
  2. DateDTO? created,
  3. String? id,
  4. String? name,
})

Implementation

OrganizationDTO copyWith(
    {SelfLinkDTO? links, DateDTO? created, String? id, String? name}) {
  return OrganizationDTO(
    links: links ?? this.links,
    created: created ?? this.created,
    id: id ?? this.id,
    name: name ?? this.name,
  );
}