RouterNatLogConfig.fromJson constructor

RouterNatLogConfig.fromJson(
  1. Object? j
)

Implementation

factory RouterNatLogConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RouterNatLogConfig(
    enable: switch (json['enable']) {
      null => null,
      Object $1 => decodeBool($1),
    },
    filter: switch (json['filter']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}