Instruction.fromJson constructor

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

Implementation

Instruction.fromJson(Map<String, dynamic> json) {
  points =
      json['points'] != null ? new Points.fromJson(json['points']) : null;
  annotation = json['annotation'] != null
      ? new Annotation.fromJson(json['annotation'])
      : null;
  sign = json['sign'];
  name = json['name'];
  distance = json['distance'];
  time = json['time'];
  extraInfoJSON = json['extraInfoJSON'] != null
      ? new ExtraInfoJSON.fromJson(json['extraInfoJSON'])
      : null;
  length = json['length'];
}