Distance.fromJson constructor

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

Implementation

factory Distance.fromJson(Map<String, dynamic> json) {
  return Distance(text: json["text"]);
}