copyWith method

GetJsonValue copyWith({
  1. String? json,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GetJsonValue copyWith({String? json}) =>
    GetJsonValue(json: json ?? this.json);