toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> rtn = HashMap();
  if (this is TextFormField) {
    rtn = (this as TextFormField).toJson();
  } else {
    //fix this as we add widgets
    throw Exception("toJson is not supported on " + this.toString());
  }
  return rtn;
}