Neighbor.fromJson constructor
Neighbor.fromJson(
- Object? j
Implementation
factory Neighbor.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Neighbor(
neighborId: switch (json['neighborId']) {
null => '',
Object $1 => decodeString($1),
},
neighborDistance: switch (json['neighborDistance']) {
null => 0,
Object $1 => decodeDouble($1),
},
);
}