ModelAssociation constructor

const ModelAssociation({
  1. required ModelAssociationEnum associationType,
  2. @Deprecated('Please use the latest version of Amplify CLI to regenerate models') String? targetName,
  3. List<String>? targetNames,
  4. String? associatedName,
  5. String? associatedType,
})

Implementation

const ModelAssociation({
  required this.associationType,
  @Deprecated(
    'Please use the latest version of Amplify CLI to regenerate models',
  )
  this.targetName,
  this.targetNames,
  this.associatedName,
  this.associatedType,
});