DescribeLayersResult.fromJson constructor

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

Implementation

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