RStep.fromJson constructor

RStep.fromJson(
  1. Map<String, dynamic> json
)

Implementation

RStep.fromJson(Map<String, dynamic> json) {
  if(json['id'] != null) {
    id = json['id'];
  }
  if (json['head'] != null) {
    header = RWidgetParser.parse(json['head']);
  }

  if (json['body'] != null) {
    body = RWidgetParser.parse(json['body']);
  }
}