toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (lastPingAt != null) {
    _json[r'last_ping_at'] = lastPingAt;
  }
  return _json;
}