toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => switch (this) {
      MessageInfoTyping() => (this as MessageInfoTyping).toJson(),
      MessageInfoTransient() => (this as MessageInfoTransient).toJson(),
    };