copyWith method

InsertObjectOp copyWith({
  1. String? type,
  2. Map<String, Object>? value,
  3. Map<String, Object>? attributes,
})

Create a copy of this operation with the given fields replaced with the new values.

Implementation

InsertObjectOp copyWith({
  String? type,
  Map<String, Object>? value,
  Map<String, Object>? attributes,
}) =>
    InsertObjectOp(
      type ?? this.type,
      value ?? this.value.asMap(),
      attributes: attributes ?? this.attributes.asMap(),
    );