LocationDto.fromJson constructor

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

Implementation

LocationDto.fromJson(Map<String, dynamic> json) {
  x = json['x'] ?? 0;
  y = json['y'] ?? 0;
}