CKRecordParser class

The class that handles local model class annotation parsing.

Constructors

CKRecordParser()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

convertToLocalValue(CKFieldType field, dynamic rawValue, {CKDatabase? database}) → dynamic
Convert a single CloudKit record field to a local value.
convertToRecordValue(CKFieldType field, dynamic rawValue) → dynamic
Convert a single local value to a CloudKit record field.
createRecordStructures(List<Type> classTypes) → void
Create CKRecordStructure objects from the provided annotated model classes.
getRecordStructureFromLocalType(Type localType) → CKRecordStructure
Get a CKRecordStructure that matches a given local Type
getRecordStructureFromRecordType(String ckRecordType) → CKRecordStructure
Get a CKRecordStructure that matches a given record type string
localObjectToRecord<T extends Object>(T localObject) Map<String, dynamic>
Convert a local model object to a CloudKit record JSON object.
preloadAssets<T extends Object>(T localObject) Future<void>
recordToLocalObject<T extends Object>(Map<String, dynamic> recordData, {CKDatabase? database}) → T
Convert a CloudKit record JSON object to a local model object.