sfgboxapi

<back to all web services

UsersIntendedLookup

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

// @DataContract
class UsersIntendedLookup implements IConvertible
{
    // @DataMember(Order=2)
    String? firstName;

    // @DataMember(Order=3)
    String? lastName;

    // @DataMember(Order=4)
    String? identificationNumber;

    // @DataMember(Order=5)
    String? phoneNumber;

    // @DataMember(Order=6)
    double? latitude;

    // @DataMember(Order=7)
    double? longitude;

    // @DataMember(Order=8)
    // @References(typeof(UsersDetails))
    int? usersDetailsId;

    UsersIntendedLookup({this.firstName,this.lastName,this.identificationNumber,this.phoneNumber,this.latitude,this.longitude,this.usersDetailsId});
    UsersIntendedLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        firstName = json['firstName'];
        lastName = json['lastName'];
        identificationNumber = json['identificationNumber'];
        phoneNumber = json['phoneNumber'];
        latitude = JsonConverters.toDouble(json['latitude']);
        longitude = JsonConverters.toDouble(json['longitude']);
        usersDetailsId = json['usersDetailsId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'firstName': firstName,
        'lastName': lastName,
        'identificationNumber': identificationNumber,
        'phoneNumber': phoneNumber,
        'latitude': latitude,
        'longitude': longitude,
        'usersDetailsId': usersDetailsId
    };

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

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

Dart UsersIntendedLookup 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 /users_intended HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"firstName":"String","lastName":"String","identificationNumber":"String","phoneNumber":"String","latitude":0,"longitude":0,"usersDetailsId":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]