sfgboxapi

<back to all web services

DistributedBoxesViewLookup

The following routes are available for this service:
GET/distributed_boxes_view
import 'package:servicestack/servicestack.dart';

class DistributedBoxesViewLookup implements IConvertible
{
    int? id;
    int? tenantsId;
    int? appUserId;
    int? authAppUserId;
    DateTime? deploymentDate;
    int? numberBoxes;
    String? recipientType;
    int? foodGardensId;
    String? otherDescription;
    double? latitude;
    double? longitude;
    String? phoneNumber;
    String? displayName;
    String? email;
    DateTime? applicationDate;
    bool? isZoneMain;
    bool? isDisabled;
    String? gender;
    String? ethnicGroup;
    int? age;
    DateTime? approvalDate;
    bool? approved;
    String? authorizedBy;
    String? mediaPath;
    String? name;
    String? description;

    DistributedBoxesViewLookup({this.id,this.tenantsId,this.appUserId,this.authAppUserId,this.deploymentDate,this.numberBoxes,this.recipientType,this.foodGardensId,this.otherDescription,this.latitude,this.longitude,this.phoneNumber,this.displayName,this.email,this.applicationDate,this.isZoneMain,this.isDisabled,this.gender,this.ethnicGroup,this.age,this.approvalDate,this.approved,this.authorizedBy,this.mediaPath,this.name,this.description});
    DistributedBoxesViewLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        tenantsId = json['tenantsId'];
        appUserId = json['appUserId'];
        authAppUserId = json['authAppUserId'];
        deploymentDate = JsonConverters.fromJson(json['deploymentDate'],'DateTime',context!);
        numberBoxes = json['numberBoxes'];
        recipientType = json['recipientType'];
        foodGardensId = json['foodGardensId'];
        otherDescription = json['otherDescription'];
        latitude = JsonConverters.toDouble(json['latitude']);
        longitude = JsonConverters.toDouble(json['longitude']);
        phoneNumber = json['phoneNumber'];
        displayName = json['displayName'];
        email = json['email'];
        applicationDate = JsonConverters.fromJson(json['applicationDate'],'DateTime',context!);
        isZoneMain = json['isZoneMain'];
        isDisabled = json['isDisabled'];
        gender = json['gender'];
        ethnicGroup = json['ethnicGroup'];
        age = json['age'];
        approvalDate = JsonConverters.fromJson(json['approvalDate'],'DateTime',context!);
        approved = json['approved'];
        authorizedBy = json['authorizedBy'];
        mediaPath = json['mediaPath'];
        name = json['name'];
        description = json['description'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'tenantsId': tenantsId,
        'appUserId': appUserId,
        'authAppUserId': authAppUserId,
        'deploymentDate': JsonConverters.toJson(deploymentDate,'DateTime',context!),
        'numberBoxes': numberBoxes,
        'recipientType': recipientType,
        'foodGardensId': foodGardensId,
        'otherDescription': otherDescription,
        'latitude': latitude,
        'longitude': longitude,
        'phoneNumber': phoneNumber,
        'displayName': displayName,
        'email': email,
        'applicationDate': JsonConverters.toJson(applicationDate,'DateTime',context!),
        'isZoneMain': isZoneMain,
        'isDisabled': isDisabled,
        'gender': gender,
        'ethnicGroup': ethnicGroup,
        'age': age,
        'approvalDate': JsonConverters.toJson(approvalDate,'DateTime',context!),
        'approved': approved,
        'authorizedBy': authorizedBy,
        'mediaPath': mediaPath,
        'name': name,
        'description': description
    };

    getTypeName() => "DistributedBoxesViewLookup";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
    'DistributedBoxesViewLookup': TypeInfo(TypeOf.Class, create:() => DistributedBoxesViewLookup()),
});

Dart DistributedBoxesViewLookup DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /distributed_boxes_view HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"id":0,"tenantsId":0,"appUserId":0,"authAppUserId":0,"deploymentDate":"\/Date(-62135596800000-0000)\/","numberBoxes":0,"recipientType":"String","foodGardensId":0,"otherDescription":"String","latitude":0,"longitude":0,"phoneNumber":"String","displayName":"String","email":"String","applicationDate":"\/Date(-62135596800000-0000)\/","isZoneMain":false,"isDisabled":false,"gender":"String","ethnicGroup":"String","age":0,"approvalDate":"\/Date(-62135596800000-0000)\/","approved":false,"authorizedBy":"String","mediaPath":"String","name":"String","description":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]