class GovtPipelineModel { String pipeline_name = ''; String type_of_water=''; String description=''; String capacity=''; GovtPipelineModel(); factory GovtPipelineModel.fromJson(Map json){ GovtPipelineModel rtvm = new GovtPipelineModel(); rtvm.pipeline_name = json['Name'] ?? ''; rtvm.type_of_water = json['typeofwater'] ?? ''; rtvm.description = json['description'] ?? ''; rtvm.capacity = json['capacity'] ?? ''; return rtvm; } Map toJson() => { "pipelineName":this.pipeline_name, "typeofwater": this.type_of_water , "description": this.description, }; }