GetThreadRootsResponse.fromJson constructor

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

Implementation

GetThreadRootsResponse.fromJson(Map<String, Object?> json)
    : chunk = (json['chunk'] as List)
          .map((v) => MatrixEvent.fromJson(v as Map<String, Object?>))
          .toList(),
      nextBatch = ((v) => v != null ? v as String : null)(json['next_batch']);