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