DynamicStep.fromJson constructor
Creates a DynamicStep instance from a JSON map.
Implementation
factory DynamicStep.fromJson(Map<String, dynamic> json) {
return DynamicStep(
title: json['title'] as String,
subtitle: json['subtitle'] as String?,
fields: (json['fields'] as List<dynamic>)
.map((e) => DynamicField.fromJson(e as Map<String, dynamic>))
.toList(),
isActive: json['isActive'] as bool? ?? true,
);
}