ListLayersResponse.fromJson constructor

ListLayersResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListLayersResponse.fromJson(Map<String, dynamic> json) {
  return ListLayersResponse(
    layers: (json['Layers'] as List?)
        ?.whereNotNull()
        .map((e) => LayersListItem.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextMarker: json['NextMarker'] as String?,
  );
}