SupGen.fromJson constructor

SupGen.fromJson(
  1. dynamic json
)

Creates a SupGen instance from a JSON map.

json A map containing the sup_gen_option configuration data

Returns a new SupGen instance with the parsed data.

Implementation

factory SupGen.fromJson(dynamic json) {
  return SupGen(
    enable: json['enable'] as bool,
    schema: json['schema'] as String,
    useSsl: json['use_ssl'] as bool?,
    output: json['output'] as String,
  );
}