Example.fromJson constructor

Example.fromJson(
  1. Object? j
)

Implementation

factory Example.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Example(
    input: switch (json['input']) {
      null => null,
      Object $1 => Message.fromJson($1),
    },
    output: switch (json['output']) {
      null => null,
      Object $1 => Message.fromJson($1),
    },
  );
}