(item *team.MemberAddResult)
| 229 | } |
| 230 | |
| 231 | func teamMemberAddItemJSONFromDropbox(item *team.MemberAddResult) teamMemberAddItemJSON { |
| 232 | if item == nil { |
| 233 | return teamMemberAddItemJSON{} |
| 234 | } |
| 235 | result := teamMemberAddItemJSON{ |
| 236 | Tag: item.Tag, |
| 237 | Email: teamMemberAddResultEmail(item), |
| 238 | } |
| 239 | if item.Success != nil { |
| 240 | member := teamMemberJSONFromDropbox(item.Success) |
| 241 | result.Member = &member |
| 242 | if item.Success.Profile != nil { |
| 243 | result.Email = item.Success.Profile.Email |
| 244 | } |
| 245 | } |
| 246 | return result |
| 247 | } |
| 248 | |
| 249 | func teamMemberAddResultEmail(item *team.MemberAddResult) string { |
| 250 | switch item.Tag { |
no test coverage detected