SDNEvent.fromJson constructor

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

Implementation

SDNEvent.fromJson(Map<String, Object?> json)
    : eventId = json['event_id'] as String,
      roomId = json['room_id'] as String?,
      originServerTs = DateTime.fromMillisecondsSinceEpoch(
          json['origin_server_ts'] as int),
      unsigned = (json['unsigned'] as Map<String, Object?>?)?.copy(),
      prevContent = (json['prev_content'] as Map<String, Object?>?)?.copy(),
      redacts = json['redacts'] as String?,
      super.fromJson(json);