fromJson static method

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

Creates an instance of this class from the constructor parameters defined in the json object.

Example

class Item extends Serializable {
  const(this.name, this.count);
  final String name;
  final int? count;
}

final Item x = Item.fromJson({ 
  'name': 'apple', 
  'count': 10,
});

Implementation

static SlotNotification fromJson(final Map<String, dynamic> json) => SlotNotification(
  parent: json['parent'],
  root: json['root'],
  slot: json['slot'],
);