ResourceExtensions<T extends Resource> extension

on
  • T

Methods

withFieldResource<T2 extends Resource>(FieldDefinition<T2> field, T2 resource, {required T constructor(JsonObject)}) → T
Creates a clone of the resource with the provided field updated with another resource
withFieldValue(FieldDefinition field, JsonValue value, {required T constructor(JsonObject)}) → T
Creates a clone of the resource with the provided field updated with another resource
withNullField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) UpdateResult<T>
withUndefinedField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) UpdateResult<T>