toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['color'] = color;
data['fontSize'] = fontSize;
data['fontFamily'] = fontFamily;
data['inputHeight'] = inputHeight;
data['inputMargin'] = inputMargin;
data['borderColor'] = borderColor;
data['borderWidth'] = borderWidth;
data['borderRadius'] = borderRadius;
if (boxShadow != null) {
data['boxShadow'] = boxShadow!.toJson();
}
if (placeHolder != null) {
data['placeHolder'] = placeHolder!.toJson();
}
return data;
}