toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (replies != null) {
    data['oneOnOneReplies'] = replies?.value;
  }
  if (messages != null) {
    data['oneOnOneMessages'] = messages?.value;
  }
  if (reactions != null) {
    data['oneOnOneReactions'] = reactions?.value;
  }
  return data;
}