YData.fromJson constructor

YData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory YData.fromJson(Map<String, dynamic> json) {
  var r = YData(
    title: json['TITLE'] ?? '',
    unit: json['UNIT'] ?? '',
    yDisplay: json['Y_DISPLAY'] ?? '',
    y: _fromString(json['Y']),
  );
  return r;
}