CustomSockoptConfig.fromJson constructor

CustomSockoptConfig.fromJson(
  1. Object? json
)

Implementation

factory CustomSockoptConfig.fromJson(Object? json) {
  final map = asJsonMap(json, 'customSockopt');
  return CustomSockoptConfig(
    system: map['system'] as String?,
    network: map['network'] as String?,
    level: map['level'] as String?,
    opt: map['opt'] as String?,
    value: map['value'] as String?,
    type: map['type'] as String?,
  );
}