FieldCoderType

public protocol FieldCoderType

Types that implement encoding to and decoding from Data to be used in Field.Coded properties’ coder: argument.

class Person: CoreStoreObject {

    @Field.Coded("profile", coder: FieldCoders.Json.self)
    var profile: Profile = .init()
}