# loadDocument method

Future<DocumentData> loadDocument(

1. String documentID

)

Load a document by its ID.

## Implementation

    Future<DocumentData> loadDocument(String documentID) async {
      try {
        var operationParamsMap = <String, dynamic>{"documentID": documentID};

        var result = await ScanbotSdk.channel
            .invokeMethod('loadDocument', operationParamsMap);

        return DocumentData.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }