copyWith method

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

Implementation

ModelAssociation copyWith({
  ModelAssociationEnum? associationType,
  String? targetName,
  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,
  );
}