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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{Unable to show example output for type 'IEnumerable`1' using the custom 'other' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.DistributedBoxesViewLookupResponse]'. Reason: Cannot create an instance of an interface.