renderUserJson function

void renderUserJson(
  1. String caller
)

Only a presentation function.

Implementation

void renderUserJson(String caller) {
  print('  -->-->  renderUserJson started  called by: $caller   -->--> ');
  //  Crete only-here instance.
  UserJson uj = UserJson();
  //  encode(Object value, { dynamic toEncodable(object) }) → String
  //  Converts value to a json string.

  //  decode(String source, { dynamic reviver(key, value) }) → dynamic
  //  Parses the string and returns the resulting Json object.
  print('encoded:: ');
  print(uj.encoded);
  print(uj.encoded.length);
  print('decoded::');
  print(uj.decoded);
  print(uj.decoded.length);

  print('- encode: Converts value to a json string.::');
  print(uj.dpIn);
  print([
    "dpStart",
    {"inData": 5}
  ]);
  print(uj.dpIn[0]);
  print(uj.dpIn[1]);
  print('- decode: Parses the string and returns the resulting Json object::');
  print(uj.dpOut);
  print('["dpNext", { "outFormData": 7 }]');
  print(uj.dpOut[0]);
  print(uj.dpOut[1]);
  print('  --<--<  renderUserJson   done  called by: $caller   --<--< ');
}