copyWith method

GetTaskPayloadResult copyWith({
  1. Map<String, Object?>? meta,
})

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

GetTaskPayloadResult copyWith({
  Map<String, Object?>? meta,
}) =>
    GetTaskPayloadResult.fromJson({
      ...toJson(),
      if (meta != null) '_meta': $encode(meta),
    });