getLockTemplate method
Get the lock template associated to the given template
template
A String label of the template to get the lock template for
Returns the lock template associated to the given template if possible. Else null.
Implementation
@override
LockTemplate? getLockTemplate(String contract) {
final contractResult = contractsStore.findFirstSync(_instance,
finder: Finder(filter: Filter.equals("contract", contract)));
if (contractResult == null) return null;
return LockTemplate.fromJson(jsonDecode(contractResult["lock"]! as String));
}