toJson method

  1. @override
String? toJson(
  1. CrossAxisAlignment? object
)
override

Implementation

@override
String? toJson(CrossAxisAlignment? object) {
  if (object == null) return null;

  switch (object) {
    case CrossAxisAlignment.baseline:
      return 'baseline';
    case CrossAxisAlignment.center:
      return 'center';
    case CrossAxisAlignment.end:
      return 'end';
    case CrossAxisAlignment.start:
      return 'start';
    case CrossAxisAlignment.stretch:
      return 'stretch';
  }
}