withFieldValue method

T withFieldValue(
  1. FieldDefinition field,
  2. JsonValue value, {
  3. required T constructor(
    1. JsonObject
    ),
})

Creates a clone of the resource with the provided field updated with another resource

Implementation

T withFieldValue(
  // ignore: strict_raw_type
  FieldDefinition field,
  JsonValue value, {
  required T Function(JsonObject) constructor,
}) =>
    constructor(json.withUpdate(field.name, value));