ListenerTls.fromJson constructor

ListenerTls.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListenerTls.fromJson(Map<String, dynamic> json) {
  return ListenerTls(
    certificate: ListenerTlsCertificate.fromJson(
        json['certificate'] as Map<String, dynamic>),
    mode: (json['mode'] as String).toListenerTlsMode(),
  );
}