createAppFromClipboard method

Future<List<NewAppTask>> createAppFromClipboard()

Implementation

Future<List<NewAppTask>> createAppFromClipboard() async {
  var json = await Clipboard.getData(Clipboard.kTextPlain);
  if (json != null) {
    var jsonText = json.text;
    if (jsonText != null) {
      return JsonToModelsHelper.createAppFromJson(app, memberId, jsonText);
    } else {
      throw Exception("Json text is null");
    }
  } else {
    throw Exception("json is null");
  }
}