EMCustomMessageBody.fromJson constructor Null safety

EMCustomMessageBody.fromJson(
  1. {required Map map}
)

Implementation

EMCustomMessageBody.fromJson({required Map map})
    : super.fromJson(map: map, type: EMMessageBodyType.CUSTOM) {
  this.event = map['event'];
  this.params = map['params']?.cast<String, String>();
}