CreateViewRequest.fromJson constructor

CreateViewRequest.fromJson(
  1. Object? j
)

Implementation

factory CreateViewRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CreateViewRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    viewId: switch (json['viewId']) {
      null => '',
      Object $1 => decodeString($1),
    },
    view: switch (json['view']) {
      null => null,
      Object $1 => LogView.fromJson($1),
    },
  );
}