FeatureResponseBean.fromJson constructor

FeatureResponseBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FeatureResponseBean.fromJson(Map<String, Object?> json) {
  return FeatureResponseBean(
    features: (json[r'features'] as List<Object?>?)
            ?.map((i) => FeatureResponseBeanFeaturesItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}