TGoogleLocationRestriction.fromJson constructor

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

Implementation

factory TGoogleLocationRestriction.fromJson(Map<String, dynamic> json) {
  return TGoogleLocationRestriction(
    circle: json['circle'] != null
        ? TGoogleCircle.fromJson(json['circle'] as Map<String, dynamic>)
        : null,
    rectangle: json['rectangle'] != null
        ? TGoogleRectangle.fromJson(json['rectangle'] as Map<String, dynamic>)
        : null,
  );
}