Signer_SigningBox.fromMap constructor

Signer_SigningBox.fromMap(
  1. Map<String, dynamic> map
)

Implementation

Signer_SigningBox.fromMap(Map<String, dynamic> map) {
  if (!map.containsKey('type') || map['type'] != 'SigningBox') {
    throw ('Wrong map data');
  } else {
    _type = 'SigningBox';
  }
  if (map.containsKey('handle') && (map['handle'] != null)) {
    _handle = map['handle'];
  } else {
    throw ('Wrong map data');
  }
}