Creates a Sampler from json map
factory Sampler.fromJson(Map<String, dynamic> json) => _$SamplerFromJson(json);