Variation.fromJson constructor

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

Implementation

Variation.fromJson(Map<String, dynamic> json)
    : idVariation = (json['id'] ?? "") as String,
      allocation = (json['allocation'] ?? 0) as int,
      reference = (json['reference'] ?? false) as bool,
      modifications = Modifications.fromJson(json['modifications'] as Map<String, dynamic>);