generateStructureJson function

Future<Json> generateStructureJson({
  1. required String id,
  2. required dynamic structure,
})

Implementation

Future<Json> generateStructureJson({
  required String id,
  required dynamic structure,
}) async {
  return <String, dynamic>{
    kStructureIdField: id,
    kStructureField: await encrypt(jsonEncode(structure)),
  };
}