MessageNewResponse.fromMap constructor

MessageNewResponse.fromMap(
  1. Map<String, dynamic>? json
)

Implementation

MessageNewResponse.fromMap(Map<String, dynamic>? json) {
  if (json != null) {
    ts = json['ts'];
    channel = json['channel'];
    message =
        json['message'] != null ? Message.fromMap(json['message']) : null;
    success = json['success'];
  }
}