factory Signer.fromJson(Map<String, dynamic> json) => Signer( json['key'], json['type'], convertInt(json['weight'])!, json['sponsor']);