fromJSON method

Edge fromJSON(
  1. Map<String, dynamic> json
)

Restores this instance from the given JSON object.

Implementation

Edge fromJSON(Map<String,dynamic> json ) {
	from = json['from'];
	to = json['to'];
	cost = json['cost'];

	return this;
}