fromJson static method

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

Creates a object from a json

Implementation

static InputLocationMessageContent fromJson(Map<String, dynamic> json) {
  return InputLocationMessageContent(
    json['latitude']!,
    json['longitude']!,
    horizontalAccuracy: json['horizontal_accuracy'],
    livePeriod: json['live_period'],
    heading: json['heading'],
    proximityAlertRadius: json['proximity_alert_radius'],
  );
}