toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final Map<String, Map<String, String>> colors = {};

  if (actionButton != null) {
    colors['actionButton'] = actionButton!.toMap();
  }
  if (actionHint != null) {
    colors['actionHint'] = actionHint!.toMap();
  }
  if (closeHint != null) {
    colors['closeHint'] = closeHint!.toMap();
  }
  if (backHint != null) {
    colors['backHint'] = backHint!.toMap();
  }
  if (stepButton != null) {
    colors['stepButton'] = stepButton!.toMap();
  }

  return {
    'colors': colors,
    'showStatement': showStatement,
  };
}