ScaleSpec.fromJson constructor

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

Creates a ScaleSpec from JSON data.

Implementation

ScaleSpec.fromJson(Map<String, dynamic> json)
    : this(
        replicas: json['replicas'],
      );