toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      //'userId': userId == null ? '' : userId,
      'id': id,
      'name': name,
      'stripeAccountId': stripeAccountId,
      'email': email,
      'role': role == null ? '' : role,
      'phoneNumber': phoneNumber == null ? '' : phoneNumber,
      'myLocation': myLocation == null ? '' : myLocation,
      'region': region == null ? '' : region,
      'country': country == null ? '' : country,
      'agreeWithTerms': agreeWithTerms,
      'agent_id': agentId,
      'deviceIds': this.deviceIds != null && this.deviceIds.length > 0
          ? this.deviceIds.toList()
          : List.empty(growable: true),

      /* 'shoppingListConfigurations': this.shoppingListConfigurations != null
          ? this
              .shoppingListConfigurations
              .map((configuration) => configuration.toJson())
              .toList()
          : null,*/
    };