fromJson method

  1. @override
Color? fromJson(
  1. dynamic value
)
override

Implementation

@override
Color? fromJson(value) {
  try {
    if (value is String) {
      return HexColor.fromHex(value, null);
    }
    return null;
  } catch (e) {
    return null;
  }
}