image method

String? image(
  1. KeyValue k
)

Implementation

String? image(KeyValue k) {
  try {
    if (images == null) return null;
    var index = images!.indexWhere((element) => element.reference == k.value);
    var documentItemModel = images![index];
    var image = documentItemModel.image;
    if (index >= 0) return image!.url;
  } catch (_) {
    debugPrint('DocumentParameterProcessor::image() error');
  }
  return null;
}