UserResponse constructor

UserResponse({
  1. @JsonKey(name: 'profile') UserProfile? profile,
  2. @JsonKey(name: 'supplierProfile') SupplierProfile? supplierProfile,
  3. @JsonKey(name: 'customerProfile') Customer? customerProfile,
  4. @JsonKey(name: 'communicationSettings') CommunicationSettings? communicationSettings,
  5. @JsonKey(name: 'auth') AuthCredentialResponse? auth,
  6. @JsonKey(name: 'navigationActions') Navigation? navigation,
})

Implementation

factory UserResponse(
    {@JsonKey(name: 'profile')
        UserProfile? profile,
    @JsonKey(name: 'supplierProfile')
        SupplierProfile? supplierProfile,
    @JsonKey(name: 'customerProfile')
        Customer? customerProfile,
    @JsonKey(name: 'communicationSettings')
        CommunicationSettings? communicationSettings,
    @JsonKey(name: 'auth')
        AuthCredentialResponse? auth,
    @JsonKey(name: 'navigationActions')
        Navigation? navigation}) = _UserResponse;