toJson method

  1. @override
Object? toJson(
  1. ColorTokenValue value
)

Implementation

@override
Object? toJson(ColorTokenValue value) {
  return '#'
      '${value.value.red.toRadixString(16)}'
      '${value.value.green.toRadixString(16)}'
      '${value.value.blue.toRadixString(16)}'
      '${value.value.alpha.toRadixString(16)}';
}