> allOffsets,
+) {
+ final object = Input();
+ object.id = id;
+ object.innerRedeemScriptAsm = reader.readStringOrNull(offsets[0]);
+ object.isCoinbase = reader.readBoolOrNull(offsets[1]);
+ object.scriptSig = reader.readStringOrNull(offsets[2]);
+ object.scriptSigAsm = reader.readStringOrNull(offsets[3]);
+ object.sequence = reader.readLongOrNull(offsets[4]);
+ object.txid = reader.readString(offsets[5]);
+ object.vout = reader.readLong(offsets[6]);
+ return object;
+}
+
+P _inputDeserializeProp(
+ IsarReader reader,
+ int propertyId,
+ int offset,
+ Map> allOffsets,
+) {
+ switch (propertyId) {
+ case 0:
+ return (reader.readStringOrNull(offset)) as P;
+ case 1:
+ return (reader.readBoolOrNull(offset)) as P;
+ case 2:
+ return (reader.readStringOrNull(offset)) as P;
+ case 3:
+ return (reader.readStringOrNull(offset)) as P;
+ case 4:
+ return (reader.readLongOrNull(offset)) as P;
+ case 5:
+ return (reader.readString(offset)) as P;
+ case 6:
+ return (reader.readLong(offset)) as P;
+ default:
+ throw IsarError('Unknown property with id $propertyId');
+ }
+}
+
+Id _inputGetId(Input object) {
+ return object.id;
+}
+
+List> _inputGetLinks(Input object) {
+ return [object.prevOut, object.transaction];
+}
+
+void _inputAttach(IsarCollection col, Id id, Input object) {
+ object.id = id;
+ object.prevOut.attach(col, col.isar.collection