ColorBean.fromJson constructor

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

Implementation

factory ColorBean.fromJson(Map<String, Object?> json) {
  return ColorBean(
    key: json[r'key'] != null
        ? ColorBeanKey.fromValue(json[r'key']! as String)
        : null,
  );
}