mergeAndAssignProperties method

void mergeAndAssignProperties(
  1. Map<String, dynamic> json,
  2. int type,
  3. int index,
  4. List<Properties> properties,
)

Implementation

void mergeAndAssignProperties(
  Map<String, dynamic> json,
  int type,
  int index,
  List<Properties> properties,
) {
  String key = index == 0 ? 'props' : 'props_$index';
  properties[index] = (json[key] != null
      ? Properties.fromJson({...json['props'] ?? {}, ...json[key]}, type)
      : null)!;
}