toJson method
Creates Map Object from Class
Implementation
MapEntry<String, dynamic> toJson() {
switch (kind) {
case 'Blake2_128':
return MapEntry('Blake2_128', null);
case 'Blake2_256':
return MapEntry('Blake2_256', null);
case 'Blake2_128Concat':
return MapEntry('Blake2_128Concat', null);
case 'Twox128':
return MapEntry('Twox128', null);
case 'Twox256':
return MapEntry('Twox256', null);
case 'Twox64Concat':
return MapEntry('Twox64Concat', null);
case 'Identity':
return MapEntry('Identity', null);
default:
throw UnexpectedTypeException('Unexpected type: $kind');
}
}