factory SslPin.fromMap(Map<String, dynamic> map) { return SslPin( hash: map['hash'] as String, expiredAt: DateTime.parse(map['date'] as String), ); }