of static method

PushEventsBody of({
  1. String? type,
  2. List<IAccountEvent>? events,
})
override

Implementation

static PushEventsBody of({String? type, List<IAccountEvent>? events}) {
  final self = PushEventsBody(<String, dynamic>{},
      mtype: PushEventsBodyRef, update: true);
  if (type != null) self.type = type;
  if (events != null) self.events = events;
  return self;
}