constructKey method

AtKey constructKey(
  1. String savedKey
)

Implementation

AtKey constructKey(String savedKey) {
  var key = AtKey();
  Map<String, String> keyFields = fieldSeparator(savedKey);
  // construct key
  key.key = keyFields['key'] ?? "";
  key.sharedBy = keyFields['sharedBy'];
  key.sharedWith = keyFields['sharedWith'];
  // prepare metadata
  key.metadata = Metadata();
  key.metadata.ccd = true;
  key.metadata.ttr = -1;
  key.metadata.isBinary = true;
  return key;
}