Ui.fromJson constructor

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

Implementation

factory Ui.fromJson(Map<String, dynamic> json) {
  return JsonFactoryMixin.safeFromJson(
    json,
    (j) => Ui(
      parentViewName: j['parent_view_name'],
      viewName: j['view_name'],
      keyboardShowing: j['keyboard_showing'],
      keyboardFrame: j['keyboard_frame'],
      actionType: j['action_type'],
      actionMode: j['action_mode'],
      touchIndex: JsonFactoryMixin.safeInt(j['touch_index']),
      touchPoint: j['touch_point'],
      eventPairId: j['event_pair_id'],
      screenImage: j['screen_image'],
      screenImageHash: j['screen_image_hash'],
      texts: j['texts'],
      hash: j['hash'],
      views: j['views'],
    ),
    () => Ui(),
  );
}