copyWith method

ModelAssociation copyWith({
  1. ModelAssociationEnum? associationType,
  2. List<String>? targetNames,
  3. String? associatedName,
  4. String? associatedType,
})

Implementation

ModelAssociation copyWith({
  ModelAssociationEnum? associationType,
  List<String>? targetNames,
  String? associatedName,
  String? associatedType,
}) {
  return ModelAssociation(
    associationType: associationType ?? this.associationType,
    targetNames: targetNames ?? this.targetNames,
    associatedName: associatedName ?? this.associatedName,
    associatedType: associatedType ?? this.associatedType,
  );
}