HillshadeLayerProperties.fromJson constructor

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

Implementation

factory HillshadeLayerProperties.fromJson(Map<String, dynamic> json) {
  return HillshadeLayerProperties(
    hillshadeIlluminationDirection: json['hillshade-illumination-direction'],
    hillshadeIlluminationAnchor: json['hillshade-illumination-anchor'],
    hillshadeExaggeration: json['hillshade-exaggeration'],
    hillshadeShadowColor: json['hillshade-shadow-color'],
    hillshadeHighlightColor: json['hillshade-highlight-color'],
    hillshadeAccentColor: json['hillshade-accent-color'],
    visibility: json['visibility'],
  );
}