FrameAppWS

<back to all web services

GetLayerMapsRQ

The following routes are available for this service:
All Verbs/mobile/maps/layer
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class LayerData implements IConvertible
{
    int? code;
    String? name;
    double? latitude;
    double? longitude;
    String? complexinfo;

    LayerData({this.code,this.name,this.latitude,this.longitude,this.complexinfo});
    LayerData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        code = json['code'];
        name = json['name'];
        latitude = JsonConverters.toDouble(json['latitude']);
        longitude = JsonConverters.toDouble(json['longitude']);
        complexinfo = json['complexinfo'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'code': code,
        'name': name,
        'latitude': latitude,
        'longitude': longitude,
        'complexinfo': complexinfo
    };

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

class GetLayerMapsRS implements IConvertible
{
    String? Code;
    String? ErrorMessage;
    List<LayerData>? Data;

    GetLayerMapsRS({this.Code,this.ErrorMessage,this.Data});
    GetLayerMapsRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Code = json['Code'];
        ErrorMessage = json['ErrorMessage'];
        Data = JsonConverters.fromJson(json['Data'],'List<LayerData>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Code': Code,
        'ErrorMessage': ErrorMessage,
        'Data': JsonConverters.toJson(Data,'List<LayerData>',context!)
    };

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

class GetLayerMapsRQ implements IConvertible
{
    String? Layer;
    String? Access;

    GetLayerMapsRQ({this.Layer,this.Access});
    GetLayerMapsRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Layer = json['Layer'];
        Access = json['Access'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Layer': Layer,
        'Access': Access
    };

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

TypeContext _ctx = TypeContext(library: 'ws.jimsnwa.com', types: <String, TypeInfo> {
    'LayerData': TypeInfo(TypeOf.Class, create:() => LayerData()),
    'GetLayerMapsRS': TypeInfo(TypeOf.Class, create:() => GetLayerMapsRS()),
    'List<LayerData>': TypeInfo(TypeOf.Class, create:() => <LayerData>[]),
    'GetLayerMapsRQ': TypeInfo(TypeOf.Class, create:() => GetLayerMapsRQ()),
});

Dart GetLayerMapsRQ DTOs

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

HTTP + CSV

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

POST /mobile/maps/layer HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Layer":"String","Access":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Code":"String","ErrorMessage":"String","Data":[{"code":0,"name":"String","latitude":0,"longitude":0,"complexinfo":"String"}]}