TextPayload.fromJson constructor

TextPayload.fromJson(
  1. Map<String, Object?> j
)

Implementation

factory TextPayload.fromJson(Map<String, Object?> j) =>
    TextPayload(text: j['text'] as String? ?? '');