args property

Map<String, String> get args

Implementation

Map<String, String> get args {
  final result = <String, String>{};

  final typeMap = {
    'text': 'String',
    'string': 'String',
    'int': 'int',
    'double': 'double',
    'datetime': 'DateTime',
    'num': 'num',
    'float': 'double',
    'bool': 'bool',
  };

  if (placeholdersRaw?.isNotEmpty == true) {
    for (final key in placeholdersRaw!.keys) {
      final String type = placeholdersRaw?[key]?['type'] ?? 'String';
      result.putIfAbsent(key, () => typeMap[type.toLowerCase()]!);
    }
  }

  return result;
}