copyWith method

GetParameterResponseModel copyWith({
  1. int? deviceid,
  2. String? $value,
  3. String? displayname,
  4. String? displayvalue,
  5. int? parameterdefinitionid,
  6. int? pdiid,
  7. String? name,
  8. int? id,
  9. int? datecreated,
  10. String? datetimecreated,
  11. int? datemodified,
  12. String? datetimemodified,
  13. String? sectionName,
})

Implementation

GetParameterResponseModel copyWith(
    {int? deviceid,
    String? $value,
    String? displayname,
    String? displayvalue,
    int? parameterdefinitionid,
    int? pdiid,
    String? name,
    int? id,
    int? datecreated,
    String? datetimecreated,
    int? datemodified,
    String? datetimemodified,
    String? sectionName}) {
  return GetParameterResponseModel(
      deviceid: deviceid ?? this.deviceid,
      $value: $value ?? this.$value,
      displayname: displayname ?? this.displayname,
      displayvalue: displayvalue ?? this.displayvalue,
      parameterdefinitionid:
          parameterdefinitionid ?? this.parameterdefinitionid,
      pdiid: pdiid ?? this.pdiid,
      name: name ?? this.name,
      id: id ?? this.id,
      datecreated: datecreated ?? this.datecreated,
      datetimecreated: datetimecreated ?? this.datetimecreated,
      datemodified: datemodified ?? this.datemodified,
      datetimemodified: datetimemodified ?? this.datetimemodified,
      sectionName: sectionName ?? this.sectionName);
}