toJson method

Map<String, dynamic> toJson()

Implementation

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