StateEvent.fromJson constructor

StateEvent.fromJson(
  1. Map<String, Object?> json
)

Implementation

StateEvent.fromJson(Map<String, Object?> json)
    : content = json['content'] as Map<String, Object?>,
      stateKey = ((v) => v != null ? v as String : null)(json['state_key']),
      type = json['type'] as String;