toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (displayName != null) 'display_name': displayName,
      if (id != null) 'id': id,
      if (avatarUrl != null) 'avatar_url': avatarUrl,
    };