copy method Null safety

AppStoreVersion copy(
  1. {String? type,
  2. String? id,
  3. AppStoreVersionAttributes? attributes}
)

Creates a copy of this version overriding the old values if new ones are provided.

Implementation

AppStoreVersion copy({
  String? type,
  String? id,
  AppStoreVersionAttributes? attributes,
}) {
  return AppStoreVersion(
    type: type ?? this.type,
    id: id ?? this.id,
    attributes: attributes ?? this.attributes,
  );
}