GlobalScopeBean.fromJson constructor

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

Implementation

factory GlobalScopeBean.fromJson(Map<String, Object?> json) {
  return GlobalScopeBean(
    attributes: (json[r'attributes'] as List<Object?>?)
            ?.map((i) =>
                GlobalScopeBeanAttributes.fromValue(i as String? ?? ''))
            .toList() ??
        [],
  );
}