copyWith method

MacroInstance copyWith({
  1. String? name,
  2. String? body,
  3. Map<String, dynamic>? parameters,
  4. GenericLinks? links,
})

Implementation

MacroInstance copyWith(
    {String? name,
    String? body,
    Map<String, dynamic>? parameters,
    GenericLinks? links}) {
  return MacroInstance(
    name: name ?? this.name,
    body: body ?? this.body,
    parameters: parameters ?? this.parameters,
    links: links ?? this.links,
  );
}