CodeGenerationRule.fromJson constructor

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

Implementation

factory CodeGenerationRule.fromJson(Map<String, dynamic> json) =>
    CodeGenerationRule(
      position: json["position"],
      type: json["type"],
      value: json["value"],
      attribute: json["attribute"],
      startLength: json["startLength"],
      endLength: json["endLength"],
      filler: json["filler"],
      randomElement: json["randomElement"],
      length: json["length"],
      onlyDigits: json["onlyDigits"],
      id: json["_id"],
    );