copyWith method

AssingVariableFromJson copyWith({
  1. ID? cubitID,
  2. ID? stateID,
  3. ID? variableID,
  4. String? jsonKey,
  5. JsonGetAttribute? assigningJSON,
  6. int? targetIndex,
})

Implementation

AssingVariableFromJson copyWith({
  ID? cubitID,
  ID? stateID,
  ID? variableID,
  String? jsonKey,
  JsonGetAttribute? assigningJSON,
  int? targetIndex,
}) {
  return AssingVariableFromJson(
    id: id,
    cubitID: cubitID ?? this.cubitID,
    stateID: stateID ?? this.stateID,
    variableID: variableID ?? this.variableID,
    type: type,
    jsonKey: jsonKey ?? this.jsonKey,
    assigningJSON: assigningJSON ?? this.assigningJSON,
    targetIndex: targetIndex ?? this.targetIndex,
  );
}